﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShareCode.Dto
{
    /// <summary>
    /// 小写首字母为兼容其它语言
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PagingWithDataModel<T> : PagingDto, IResultDto
    {
        public List<T>? List
        {
            set; get;
        }
        public static PagingWithDataModel<T> GetObj(PagingDto pars)
        {
            return new PagingWithDataModel<T>(pars); ;
        }

        public PagingWithDataModel()
        {
        }

        public PagingWithDataModel(PagingDto? pars)
        {
            pars ??= new PagingDto();
            Init(pars);
        }
    }
}
